# Create your views here.
from django.http import JsonResponse
from django.shortcuts import render

# Create your views here.
from rest_framework.response import Response

from Blog import models
from rest_framework.views import APIView
from Blog.serializers import TypeSerializer,BlogSerializer
#查询nav，返回json数据
#继承rest_framework APIView
class Blog(APIView):
    def post(self, request, *args, **kwargs):
        response = {'status': 200, 'msg': '发布成功'}
        title = request.POST.get('title', None)
        content = request.POST.get('content', None)

